<?php

class User_IndexController extends Zend_Controller_Action
{

    public function documentationAction()
    {
		$config = new Zend_Config_Ini(APPLICATION_PATH . '/configs/application.ini', APPLICATION_ENV);
		$auth = Zend_Auth::getInstance();

        if( $auth->hasIdentity() && ($auth->getIdentity()->UserIsClient == "Y")){
			return $this->_helper->redirector->gotoRoute(array("module" => "user", "controller"=>"index", "action"=>"documentation-client"));	
		}
		
		return $this->_helper->redirector->gotoRoute(array("module" => "user", "controller"=>"index", "action"=>"documentation-admin"));	
    }
	
	public function documentationClientAction(){
		$this->_helper->layout->setLayout('layout-document-contact');
		$this->view->activeDocumentation = true;		
	}

	public function documentationAdminAction(){
		$this->_helper->layout->setLayout('layout-document-contact');
		$this->view->activeDocumentation = true;		
	}
	
	public function indexAction(){
	}
}

